package jimo.springboot.config;


import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import javax.sql.DataSource;

//@Configuration
//@EnableConfigurationProperties(JdbcProperties.class)
public class JdbcConfig {

    // 声明要注入的属性前缀，SpringBoot会自动把相关属性通过set方法注入到DataSource中
   // @Bean
 //  @ConfigurationProperties(prefix = "jdbc")//前缀，默认扫描application.properties
    public DataSource dataSource(){
      // DruidDataSource dataSource = new DruidDataSource();
        return null;
    }
}
